package edu.ynu.se.xiecheng.achitectureclass.entity;

import edu.ynu.se.xiecheng.achitectureclass.entity.BaseSensorData;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Entity
@Table(name = "soil_temperature_data")
@Data
@EqualsAndHashCode(callSuper = true)
public class SoilTemperatureData extends BaseSensorData {
    @Override
    public String getDefaultName() {
        return "土壤温度传感器";
    }

    @Override
    public String getDefaultUnit() {
        return "℃";
    }
} 